#include <iostream>
using namespace std;

template <class T1>
T1 func(T1 a){
    return a;
}

template <class T2>
class animal{
public:
    T2 age;
    animal(T2 age){
        this->age=age;
    }
    T2 getAge(){
        return age;
    }
};


int main() {
    cout<<func<int>(2)<<endl;

    animal<int> a(33);
    cout<<a.getAge()<<endl;

    return 0;
}